/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: mirac
 * Date: 2025-11-28
 * Time: 15:52
 */
public class MyTimerTask {
    private Runnable task;
    private long time;

    public MyTimerTask(Runnable runnable,long delay) {
        this.task = runnable;
        this.time = delay;
    }

    public long getTime() {
        return time;
    }

    public void toRun() {
        task.run();
    }
}
